package com.linkstec.bookshop.pojo;

/**
 * 
 * @ClassName: Book 数据库表book的实体类
 * @Description:TODO
 * @author: JGQiang
 * @date: 2018年11月22日 上午11:35:50
 */
public class Book {

	private int bookId;// id

	private String bName;// 名称

	private String author;// 作者

	private String detail;// 描述

	private double grade;// 评分

	private int cgId;// 外键，分类id

	private String image;// 图片地址

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public String getbName() {
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public double getGrade() {
		return grade;
	}

	public void setGrade(double grade) {
		this.grade = grade;
	}

	public int getCgId() {
		return cgId;
	}

	public void setCgId(int cgId) {
		this.cgId = cgId;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", bName=" + bName + ", author=" + author + ", detail=" + detail + ", grade="
				+ grade + ", cgId=" + cgId + ", image=" + image + "]";
	}

}
